package com.cap.bts.crmdp.dealer.purchase.domain;

import java.io.Serializable;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.cap.bts.framework.common.domain.BaseDomain;


/**
 * The persistent class for the TM_POS_PACKAGE_INVENTORY database table.
 * 
 */
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Entity
@Table(name="TM_POS_PACKAGE_INVENTORY")
@AttributeOverrides({
    @AttributeOverride(name="createBy", column=@Column(name="CREATE_BY")),
    @AttributeOverride(name="createDate", column=@Column(name="CREATE_DATE", nullable = false)),
    @AttributeOverride(name="lastUpdateBy", column=@Column(name="LAST_UPDATE_BY")),
    @AttributeOverride(name="lastUpdateDate", column=@Column(name="LAST_UPDATE_DATE"))
})
public class PackageInventory extends BaseDomain implements Serializable {

	/**
     * 
     */
    private static final long serialVersionUID = 5163546212143812557L;

	private long id;

	private long dealerId;

	private int intransitQuantity;

	private int onhandQuantity;

	private long packageDefId;


	@Id
    @GeneratedValue(strategy=GenerationType.AUTO)
	public long getId() {
		return this.id;
	}

	public void setId(long id) {
		this.id = id;
	}

	@Column(name="DEALER_ID")
	public long getDealerId() {
		return this.dealerId;
	}

	public void setDealerId(long dealerId) {
		this.dealerId = dealerId;
	}

	@Column(name="INTRANSIT_QUANTITY")
	public int getIntransitQuantity() {
		return this.intransitQuantity;
	}

	public void setIntransitQuantity(int intransitQuantity) {
		this.intransitQuantity = intransitQuantity;
	}

	@Column(name="ONHAND_QUANTITY")
	public int getOnhandQuantity() {
		return this.onhandQuantity;
	}

	public void setOnhandQuantity(int onhandQuantity) {
		this.onhandQuantity = onhandQuantity;
	}

	@Column(name="PACKAGE_DEF_ID")
	public long getPackageDefId() {
		return this.packageDefId;
	}

	public void setPackageDefId(long packageDefId) {
		this.packageDefId = packageDefId;
	}

}